| package versions | comp. environment | editable execution | |
|---|---|---|---|
| package management | ✅ | ❌ | if... |
Short intro to the topic
16 May 2024
Please check:
rix installed
Nix installed (if not, we’ll do an alternative using github actions)
Alternative to installation of Nix
Do you have git installed?
Do you have a github account?
Workshop will be recorded
Only the presenter and the shared screen is recorded
If you want to be absolutely sure, switch off your camera and rename yourself if necessary
Event series
“Open Science - Opportunities for Educational Research”
Organized
by the DIPF working group “Open Research and Practice”
Further events
see leibniz-openscience.de/event-calendar
DIPF Open Science Codex est. January 23rd 2024
But when you/others re-run your code, R throughs error messages.
Crüwell et al. (2023): All articles from one issue in Psychological Science
Hardwicke et al. (2021): All articles with open data badge from Psychological Science in 2014-2015
Obels et al. (2020): 36 registered reports that shared both, code and data
Crüwell et al. (2023): All articles from one issue in Psychological Science
Hardwicke et al. (2021): All articles with open data badge from Psychological Science in 2014-2015
Obels et al. (2020): 36 registered reports that shared both, code and data
Computational reproducibility
“obtaining consistent results using the same input data; computational steps, methods, and code; and conditions of analysis” (NAS, 2018, p. 46)
“In principle, all reported evidence should be reproducible. If someone applies the same analysis to the same data, the same result should occur.” (B. A. Nosek et al., 2022, p. 721)
Artner et al. (2021): 232 scientific claims from 46 journal articles
Artner et al. (2021): 232 scientific claims from 46 journal articles
Renaming files
Hard-coding file paths
copy-paste errors
wrong rounding
Old package versions
Non-standardized computational environment (e.g., Older software versions)
Very simple usage via
starts using renv in the current project with renv::init()
installs the needed packages as usual
document which packages are needed with renv::snapshot()
creates this environment in their project with renv::restore()
Alternative: {groundhog} package
| package versions | comp. environment | editable execution | |
|---|---|---|---|
| package management | ✅ | ❌ | if... |
Like a lightweight virtual machine
A small self-sufficient environment for a software application, so it runs consistently regardless of where it’s deployed
| package versions | comp. environment | editable execution | |
|---|---|---|---|
| package management | ✅ | ❌ | if... |
| contrainerization | ❌ | ✅ | if... |
| package versions | comp. environment | editable execution | |
|---|---|---|---|
| package management | ✅ | ❌ | if... |
| contrainerization | ❌ | ✅ | if... |
| Nix (my hope ->) | ✅ | ✅ | ✅ |
Starting now.
Jürgen Schneider
ju.schneider@dipf.de
Title page #
Icons by Font Awesome CC BY 4.0
Built from Quarto or RMarkdown
Integrates
executes R code
displays input alongside output
Example rendered to HTML or other outputs.
| package versions | comp. environment | transparent | editable execution | |
|---|---|---|---|---|
| Input-Ouput-Documents | ✅ | ✅ | ✅ | ❌ |
Slides: bit.ly/shared-slides